from django.shortcuts import render

from commonTool.ApiResponse import api_response
from commonTool.logs.logs_wrapper import LogUtil

resultVO = api_response()
logs = LogUtil()


# Create your views here.
def index(request):
    return render(request, 'index.html')


@logs
def function_page(request):
    response = render(request, 'function_index.html')
    # 支持内嵌
    response['X-Frame-Options'] = 'ALLOWALL'
    return response


def loading(request):
    response = render(request, 'loading.html')
    # 支持内嵌
    response['X-Frame-Options'] = 'ALLOWALL'
    return response
